import request from '../utils/request.js'

//根据user_id查找标签
export const getTagsByUserId = (data) => request({
	url:'/api/tag/search/user',
	method:'get',
	data
})
//查询所有标签
export const getAllTags = () => request({
	url:'/api/tag/search/all',
	method:'get'
})

//点击加入标签
export const addTagByClick = (data) => request({
	url:'/api/tag/add/user',
	method:'post',
	data
})

//新增标签
export const addTag = (data) => request({
	url:'/api/tag/add',
	method:'post',
	data
})
//删除标签
export const deleteTagById = (data) => request({
	url:'/api/tag/delete/relation',
	method:'post',
	data
})
//新增标签
export const newTag = (data) => request({
	url:'/api/tag/add',
	method:'post',
	data
})